package com.woniuxy.main.mapper;




import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.woniuxy.main.pojo.Recharge;
import com.woniuxy.main.pojo.User;

public interface RechargeMapper {
	
	
	//动态插入充值记录
	public int insertRecharge(Recharge recharge);
	
	//动态更新充值记录
	public int updateRecharge(Recharge recharge);
	
	//根据订单号获取订单信息
	@Select("select * from recharge where reid=#{reid}")
	public Recharge getRechargeByReid(Recharge recharge);
	
	//查询所有充值记录
	@Select("select * from recharge where uid=#{uid} order by reid desc")
	public List<Recharge> allRecharge(User user);

}
